import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 销售信息
 */
@Entity('appointment_sales')
export class AppointmentSalesEntity extends BaseEntity {
  @Column({ comment: '名称' })
  name: string;

  @Column({ comment: '备注', nullable: true })
  remark: string;

  @Column({ comment: '二维码链接', nullable: true })
  qrUrl: string;

  @Column({ comment: '识别码', nullable: true })
  code: string;

  @Column({ comment: '状态', dict: ['禁用', '启用'], default: 1 })
  status: number;

  @Column({ comment: '类型', dict: ['线上', '线下'], default: 0 })
  type: number;
}
